package com.autoTools.util;

import org.jdom.Element;
import org.json.JSONArray;
import org.json.JSONObject;

public class ParseObject {
	public class ParseObjEnum {
		private static final int noObj = 1;
		private static final int jsonObj = 1;
		private static final int jsonArray = 2;
		private static final int xmlobj = 3;
	}

	private int objType = ParseObjEnum.noObj;
	private Object pobj = null;


	public ParseObject(JSONObject obj) {
		objType = ParseObjEnum.jsonObj;
		pobj = obj;
	}

	public ParseObject(JSONArray obj) {
		objType = ParseObjEnum.jsonArray;
		pobj = obj;
	}

	public ParseObject(Element obj) {
		objType = ParseObjEnum.xmlobj;
		pobj = obj;
	}

	public Object getMapObject() {
		return pobj;
	}

	public int getObjectType() {
		return objType;
	}

}
